package chapter01;

public class Test03_Transform {
    public static void main(String[] args) {
        //自动类型转换
        int a = 20;
        int b = 15;
        System.out.println(a/b);
        float c = 15.0f;
        System.out.println(a/c);
        //自动转化不能实现
        int d = 128;
//        byte e = d;
        //强制类型转换
        byte e = (byte) d;
        System.out.println(e);
        //运算过程中 如果超界 自动提升类型
        byte h = 112;
        byte g = 113;
        int i = h+g;
        System.out.println(i);


    }
}
